<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    $[ include("/common/common.html",{title:'授权'}){} ]
    
    <!-- 新 icheck 核心 CSS 文件 -->
    <link rel="stylesheet" href="${basePath}static/components/icheck/css/all.css">
  	
  	<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="${basePath}static/components/icheck/js/icheck.js"></script>
    
  </head>
  <body>
    <div class="container">
      <form id="authorizeForm" role="form" method="get">
        <div class="checkbox">
          <input type="checkbox" id="authorizeId" name="authorize" value="1">
          <label for="authorizeId">ID</label>
        </div>
        <div class="checkbox">
          <input type="checkbox" id="authorizeNm" name="authorize" value="2">
          <label for="authorizeNm">名称</label>
        </div>
        <div class="checkbox">
          <input type="checkbox" id="authorizePw" name="authorize" value="3">
          <label for="authorizePw">密码</label>
        </div>
        <div class="form-group">
          <button class="btn-primary form-control" id="submitBtn">提交</button>
        </div>
      </form>
    </div>
    
    <script>
    $(document).ready(function() {
    	//给单选框复选框添加样式
    	$('input').iCheck({
    	    checkboxClass: 'icheckbox_flat-blue',
    	    radioClass: 'iradio_flat-blue',
    	    increaseArea: '20%' // optional
    	});
    	
        $("#submitBtn").click(function(){
        	var local = window.location;
        	var basePath = local.protocol + "//" + local.host + "/";  
        	$("#authorizeForm").attr("action",basePath + "login" + "/login");
        	$("#authorizeForm").submit();
        });
    });
    </script>
  </body>
</html>